package com.ruyuan.rapid.common.config;

/**
 * @author mac
 */
public class AbstractServiceInvoker implements ServiceInvoker {

    protected String invokerPath;

    protected String ruleId;

    protected int timeout=5000;

    @Override
    public String getInvokerPath() {
        return invokerPath;
    }

    @Override
    public void setInvokerPath(String invokerPath) {
        this.invokerPath = invokerPath;
    }

    /**
     * 获取指定服务调用绑定的唯一规则
     * @return
     */
    @Override
    public String getRuleId() {
        return ruleId;
    }

    @Override
    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    /**
     * 获取方法的超时时间
     * @return
     */
    @Override
    public int getTimeout() {
        return timeout;
    }

    @Override
    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }
}
